<%@page import="java.util.Iterator"%>
<%@page import="com.cn.entity.Drugs"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>所有药物</title>
</head>
<body>
<table>
	<tr>
		<td>药物名称</td>
		<td>药物价格</td>
		<td>药物数量</td>
		<td>药物说明</td>
	</tr>
<%
List<Drugs> list=(List<Drugs>)session.getAttribute("list");
Iterator it=list.iterator();
while(it.hasNext()){
	Drugs drug=(Drugs)it.next();
	%>

		<tr>
		<td><%=drug.getDrugname() %></td>
		<td><%=drug.getPrice() %></td>
		<td><%=drug.getCount() %></td>
		<td><%=drug.getTreat() %></td>
	</tr>


	
	
<% 	} %>
</table>
</body>
</html>